{if count($orders)}
  {foreach from=$orders item=order}
  <table class = "unocart" style = "margin-top:20px; width:98%">
      <tr>
        <td>
          <b>{$smarty.const._UNOCART_ORDER_NUMBER}:</b> {$order->order_id}
        </td> 
        <td style = "text-align:right">
          <b>{$smarty.const._UNOCART_ORDER_STATUS}:</b> {$order->status_name}
        </td> 
      </tr>
      <tr>
        <td colspan = "2">
           <table class = "unocart_border">
             <tr>
               <td width = "50%">
                 <b>{$smarty.const._UNOCART_ORDER_DATE}:</b> {$order->order_date|date_format:"%Y-%m-%d"}<br />
                 <b>{$smarty.const._UNOCART_EMAIL_BILL_TO}:</b> {$order->f_name} {$order->l_name}<br />
                 <b>{$smarty.const._UNOCART_EMAIL_SHIP_TO}:</b> {$order->d_f_name} {$order->d_l_name}<br />
               </td>
               <td width = "30%">
                 <b>{$smarty.const._UNOCART_PRODUCTS}:</b> {$order->count_products}<br />
                 <b></b> {format_price price=$order->order_total currency_code=$order->currency_code}<br />
               </td>
               <td width = "20%">
                 <a href = "{$order->order_href}"><img src = "{$image_path}/view.gif" alt = "view" /></a> 
               </td>
             </tr>
           </table>
        </td> 
      </tr>
  </table>
  {/foreach}
{else}
  {$smarty.const._UNOCART_NO_ORDERS}
{/if}